package com.example.xmltest.dto;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @JacksonXmlRootElement(name = "returnsms")可以定义在类上，代表根节点
 * @JacksonXmlElementWrapper 如果无包围节点，需要指定useWrapping = false
 *  在List的子节点中，@JacksonXmlRootElement注解可加可不加
 */
@Data
//@JacksonXmlRootElement(localName = "report")
public class ReportDTO2 {
    @JacksonXmlProperty(localName = "mobile")
    private String mobile;
    @JacksonXmlProperty(localName = "taskid")
    private String taskid;
    @JacksonXmlProperty(localName = "status")
    private String status;
    @JacksonXmlProperty(localName = "errcode")
    private String errcode;
    @JacksonXmlProperty(localName = "sendtime")
    private String sendtime;
    @JacksonXmlProperty(localName = "receivetime")
    private String receivetime;


}
